package cc.comac.mom.entity;

import java.math.BigDecimal;
import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import cc.comac.mom.entity.base.BaseResultEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

@TableName("equip_repair_info")
@EqualsAndHashCode(callSuper=true)
@Data
public class EquipRepairEntity extends BaseResultEntity{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@TableField(value="repair_info_id")
	@TableId(value = "repair_info_id",type=IdType.INPUT )
	private long id;
	
	private String planNumber;
	private String planType;
	private String devNumber;
	// 提报人工号
	private String reportUser;
	private String reportJobNumber;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private Date faultDate = null; 
	
	private long faultDisplayId;
	private String faultDisplayDescribe;//故障现象
	private String faultDescribe;
	
	private int isFault;
	private int isStop;
	private long attachmentGroupId;
	private int isArtificial;
	private int productQuality;
	private String maintenanceTeam;
	private String repairPersonnel;
	// 原执行人工号
	private String repairPersonnelJobNumber;
	private String recurrenceType;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private Date expectedCompletionDate = null;
	
	private long faultCauseId;
	private String faultCauseDescribe;
	private String causeDescribe;
	private String repairTeam;
	private long repairTeamId;
	@TableField(fill = FieldFill.UPDATE)
	private String actualUser;
	// 实际执行人
	private String actualUserJobNumber;
	private int isOutsource;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private Date actualStartDate = null;
	
	private int excuteisStop;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private Date actualEndDate = null;
	
	private BigDecimal maintenanceTime;
	private BigDecimal downTime;
	private int status;
	private int acceptanceResult;
	private int remadeFlag;
	
	private String repairAffectPrecision ;
	private String testResult ;
	private String initialQualityCheck ;
	private String testQualityCheck ;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private Date acceptanceDate = null;
	
	private String acceptanceUser;
	private String acceptanceUserJobNumber;
	private String acceptanceDescribe;
	
//	private long sparePartId;
//	private String sparePartNumber;
//	private String sparePartName;
//	
//	private String sparePartModel;
//	private long equipPartId;
	private long devId;
	private String devName;
	private String devLocation;
	private String devWorkShop;
	private String userDepartment;
	private BigDecimal partQty;
	
	private String selfTaughtContent;
	private String applyingReason;
	private String applyingContent;
	private String auditDepartment;
	private String auditUser;
	private String auditUserJobNumber;
	
}
